home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / Clocks / CorrectClock / deinstall_cclock < prev    next >
Encoding:
Text File  |  1995-06-12  |  639 b   |  31 lines

  1. #!/bin/sh
  2.  
  3.  
  4.  
  5. already=`grep "correctclock" /etc/crontab.local`
  6. if [ ! -z "$already" ]; then
  7.     if [ ! `whoami` = "root" ]; then
  8.         echo "must be root"
  9.         exit 1
  10.     fi
  11.  
  12.     cp /etc/crontab.local /etc/crontab.local.old
  13.     grep -v "correctclock" /etc/crontab.local.old > /etc/crontab.local
  14.     if [ -f /usr/local/bin/correctclock ]; then
  15.         rm /usr/local/bin/correctclock
  16.     fi
  17.     
  18.     if [ -f /usr/adm/correctclock.date ]; then
  19.         rm /usr/adm/correctclock.date
  20.     fi
  21.     if [ -f /usr/adm/correctclock.log ]; then
  22.         rm /usr/adm/correctclock.log
  23.     fi
  24.     echo "Deinstalled"
  25.  
  26. else
  27.     echo " correctclock was not installed"
  28. fi
  29.  
  30.  
  31.